var webdir='http://www.2admin.co.cc';
var limit=10;
var start=0;

var pageselect=1;
$(document).ready(function() {

getuserlist();

}); 


function getuserlist()
{
    
    $.post(webdir+'/ajax.php',{functioncall:'getlistuser',uid:localStorage.getItem("uid")} ,function(data) {
    var view;
     var myObject = eval('(' + data + ')');
            
           $('#comment').html('');
            if(myObject.count>0)
            { 
            for (variable in myObject.data)
             {   
               var obj = myObject.data[variable]; 
               if(obj.pic)
               {
                   var pic=obj.pic;
               }else
               {
                   var pic='meeting_user.jpg';
               }
               var str='<li><div class="member"><img height="60" width="60" src="images/'+pic+'"></div><div class="post"><a href="javascript:changepage('+obj.uid+')"><h3>Username:'+obj.username+'<span class="meta">['+obj.createdate+']</span></h3>Name:'+obj.name+'</a><span class="num green">'+obj.count+'</span></div></li>';

               $('#comment').append(str);  
               // alert(variable) ;
         
             
             
  
            }
            }
     
});
    
}
function changepage(uid)
{
    
    location.href='messagechat.html?uid='+uid;
}